package com.designPattern.IOdecorator;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;

/**
 * 测试类
 */
public class InputTest {

	public static void main(String[] args) {
		int c;
		try {
			InputStream is = new LowerCaseInputStream(new BufferedInputStream(
					new FileInputStream("doc/test.txt")));
			while ((c = is.read()) >= 0) {
				System.out.print((char) c);
			}
			is.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

}
